package com.carol.lmsbe.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 实验室实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("laboratory")
public class Laboratory {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("location")
    private String location;

    @TableField("description")
    private String description;

    @TableField("manager_name")
    private String managerName;
    
    @TableField("manager_phone")
    private String managerPhone;

    @TableField("status")
    private Integer status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
